/**
 * Copyright (C) 2018-2022
 * All rights reserved, Designed By www.dynread.com
 */
package com.dynread.mall.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.dynread.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品分类
 *
 * @author drinvay
 * @date 2022/5/4 22:30
 */
@Data
@TableName("goods_category")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "商品分类")
public class GoodsCategory extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 父分类编号
     */
    @ApiModelProperty(value = "父类ID")
    private String parentId;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    private String picUrl;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 启用状态（0关闭 1开启）
     */
    @ApiModelProperty(value = "启用状态（0关闭 1开启）")
    private String enable;
}
